package com.qf.dbUtil.common.exception;

import com.qf.dbUtil.common.result.ResponseEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 功能说明
 *
 * @author yihuan
 * @data 2020-10-1311:27:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AppException extends RuntimeException{
    private String code;
    private String massage;
    public AppException(ResponseEnum responseEnum){
        this.code=responseEnum.getCode();
        this.massage=responseEnum.getMsg();
    }
}
